home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / util / gnu / xpdf-0.8-src.lha / xpdf-0.8-src / ltk / LTKButtonDialog.h < prev    next >
C/C++ Source or Header  |  1998-11-28  |  2KB  |  70 lines

  1. //========================================================================
  2. //
  3. // LTKButtonDialog.h
  4. //
  5. // Copyright 1997 Derek B. Noonburg
  6. //
  7. //========================================================================
  8.  
  9. #ifndef LTKBUTTONDIALOG_H
  10. #define LTKBUTTONDIALOG_H
  11.  
  12. #ifdef __GNUC__
  13. #pragma interface
  14. #endif
  15.  
  16. #include <stddef.h>
  17. #include <X11/Xlib.h>
  18. #include "gtypes.h"
  19. #include "LTKCompoundWidget.h"
  20.  
  21. class LTKButtonDialogWidget;
  22.  
  23. //------------------------------------------------------------------------
  24. // LTKButtonDialog
  25. //------------------------------------------------------------------------
  26.  
  27. class LTKButtonDialog {
  28. public:
  29.  
  30.   LTKButtonDialog(LTKWindow *overWin1, char *title,
  31.           char *line1, char *line2, char *line3,
  32.           char *trueBtnLabel, char *falseBtnLabel);
  33.   ~LTKButtonDialog();
  34.   GBool go();
  35.  
  36. private:
  37.  
  38.   LTKWindow *overWin;
  39.   LTKWindow *win;
  40.   LTKButtonDialogWidget *widget;
  41. };
  42.  
  43. //------------------------------------------------------------------------
  44. // LTKButtonDialogWidget
  45. //------------------------------------------------------------------------
  46.  
  47. class LTKButtonDialogWidget: public LTKCompoundWidget {
  48. public:
  49.  
  50.   //---------- constructor ----------
  51.  
  52.   LTKButtonDialogWidget(char *name1, int widgetNum1,
  53.             char *line1, char *line2, char *line3,
  54.             char *trueBtnLabel, char *falseBtnLabel);
  55.  
  56.   //---------- special access ----------
  57.  
  58.   GBool isDone() { return done; }
  59.   GBool whichBtn() { return btn; }
  60.  
  61. protected:
  62.  
  63.   static void buttonCbk(LTKWidget *widget, int n, GBool on);
  64.  
  65.   GBool done;
  66.   GBool btn;
  67. };
  68.  
  69. #endif
  70.